
import React from "react";
import { NativeModules, Platform } from "react-native";

import Constants from "../../common/Constants";
import BaseAction from "../common/BaseAction";

export default class SportHealthConfigAction extends BaseAction {
  constructor(props) {
    super(props);

    this.moduleType = Constants.MODULE_TYPE.SPORT;
    this.name = "SportHealthConfigAction";
  }
  finish(data, isSucceed, response) {
  	if (data&&data.value==="1") {
  		this._healthyKit = NativeModules.HealthyKit;
  		this._healthyKit.exit('d');
  	}
  }
}
